const router = require('koa-router')()
const HouseController  = require('../controller/index.controller')
router.post('/getList',HouseController.default )
router.get('/getDetail/:id',HouseController.getDetail)

router.get('/string', async (ctx, next) => {
  ctx.body = 'koa2 string'
})

router.get('/json', async (ctx, next) => {
  ctx.body = {
    title: 'koa2 json'
  }
})

module.exports = router
